import request from "../request/request";
//登录接口
export const postLogin = (data) =>  {
  return request.post('/login', data)
}
// 获取首页数据
export const getIndex = () => {
  return request.get('/Index/index')
}
//订货详情
export const getH5Companion = () => {
  return request.get('/h5/companion')
}
//创建订单API
export const postCreateOrder = (data) => {
  return request.post('/createOrder', data)
}
//订单列表
export const getOrderList = (params) => {
  return request.get('/order/list',{ params })
}
//订单详情API
export const getOrderDetail = (params) => {
  return request.get('/order/detail',{ params })
}